<extend name="Common@Layout:hui-admin" />
<block name="title"><title>Administator管理后台</title></block>
<block name="style">


</block>

<block name="main">
<div class="pd-20">
	<form action="{:u('edit_post')}" method="post" class="form form-horizontal validator_form close-dialog" id="form-article-add">
		 
		<div class="row cl">
			<label class="form-label col-2"><span class="c-red">*</span>姓名：</label>
			<div class="formControls col-6">
			  <input name="realname" type="text" class="input-text"  value="{$info.realname}" data-rule="姓名:required;"/>
			</div>
		</div>
		<div class="row cl">
			<php>
				$info? $remote_mobile= '/teacher/teacheradmin/check/t/mobile/uid/'.$info['uid']:$remote_mobile = '/teacher/teacheradmin/check/t/mobile';</php>
			<label class="form-label col-2"><span class="c-red">*</span>手机号码：</label>
			<div class="formControls col-6">
			 	<input name="mobile" type="text" class="input-text"  value="{$info.mobile}" data-rule="手机号码:required;mobile;remote[{$remote_mobile}]" data-rule-mobile="[/^(((13[0-9]{1})|(15[0-35-9]{1})|(17[0-9]{1})|(18[0-9]{1}))+\d{8})$/,'请输入正确的手机号码']"/>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-2">英文名：</label>
			<div class="formControls col-6">
			  <input name="english" type="text" class="input-text"  value="{$info.english}"/>
			</div>
		</div>
		<div class="line mt-10"></div>
		<div class="row cl">
			<php>$info?$remote_username = '/teacher/teacheradmin/check/t/username/uid/'.$info['uid']:$remote_username = '/teacher/teacheradmin/check/t/username';</php>
			<label class="form-label col-2"><span class="c-red">*</span>用户名：</label>
			<div class="formControls col-6">
			 	<input name="username" type="text" class="input-text"  value="{$info.username}" data-rule="用户名:required;remote[{$remote_username}]"/>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-2">密码：</label>
			<div class="formControls col-6">
			 	<input name="password" type="password" class="input-text"  value=""/><span class="c-red">注：如密码为空,<if condition="$info['uid']">不修改密码<else/>默认为666666</if></span>
			</div>
		</div>
	  	<div class="row cl">
	    	<div class="col-9 col-offset-2">
	    		<input type="hidden" name="uid" value="{$info['uid']}">
	      		<input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
	    	</div>
	  	</div>
	</form>
</div>
</block>

<block name="script">
<script type="text/javascript">
$(function(){
	$('.skin-minimal input').iCheck({
		checkboxClass: 'icheckbox-blue',
		radioClass: 'iradio-blue',
		increaseArea: '20%'
	});
	
	$('.mini-time').datepicker();
	
});


</script>
</block>